Handle cursor theme changes for cached cursors which are not associated
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jun 2005 17:26:24 +0000 (17:26 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 17 Jun 2005 17:26:24 +0000 (17:26 +0000)
commitbeb73ece8fb57c480f4c49e46ed600c10db64b27
tree466cbe1175880518cf555b137b5551945bbda65d
parentc96795ffb3fbb3a44e0b8ca5ccb3099be610a657
Handle cursor theme changes for cached cursors which are not associated

2005-06-17  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
for cached cursors which are not associated with a window
at the time of the theme change, by storing a serial
number in each cursor, and updating the theme_serial
counter whenever the cursor theme changes.

* gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
Private function to update a cursor to the current
cursor theme if necessary.

* gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
* gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
_gdk_x11_cursor_update_theme() here.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkmain-x11.c
gdk/x11/gdkprivate-x11.h
gdk/x11/gdkwindow-x11.c